//
//  LcToast.h
//  18Birdies
//
//  Created by Lc on 15/4/10.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
  TOAST_DURATION_SHORT,
  TOAST_DURATION_LONG,
  TOAST_DURATION_FOREVER,
} ToastDurationType;

@interface LcToast : NSObject

+ (void)showToastWithMessage:(NSString*)message;
+ (void)showToastWithMessage:(NSString*)message
                durationType:(ToastDurationType)durationType;
+ (void)showToastWithMessage:(NSString*)message
                      onWindow:(BOOL)onWindow;

@end

@interface ToastView : UIView

@property(nonatomic, strong) UILabel *label;
@property(nonatomic, weak) UIViewController *viewController;
@property(nonatomic, assign) ToastDurationType durationType;

+ (ToastView *)toastViewWithMessage:(NSString*)message inViewController:(UIViewController *)viewController;
- (void)updateMessage:(NSString *)message;

@end

